package com.xzy.a;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 依赖注入的方式：<property/> + set方法
 *
 * @author xzy
 * @date 2021/12/6 11:00
 */
@Slf4j
public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("a/beanWired.xml");
        System.out.println(applicationContext.getBean(AaaServiceImpl.class));
    }
}
